const path = require('path');
const fs = require("fs");
const cProcess = require("child_process");
const HostTools = require("./hostTools.js");
module.exports = function (req, res) {
  const cwd = process.cwd();
  const tools = HostTools(req.ctoolsOpt.devToolsDir);
  const {workspace} = req.query;
  try {
    res.send({data: tools.getHosts(), code: 0});
  } catch (e) {
    res.send({data: "fail", code: 1});
  }

};
